package com.summer.framework.api.feign.service.bill;

import com.summer.framework.common.constant.ServiceNameConstants;
import com.summer.framework.common.entity.response.BooleanResponse;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @auther: 杨杰
 * @date: 2020/4/22 10:41
 * @description:
 */
@FeignClient(value = ServiceNameConstants.SERVICE_BILL/*,configuration = FeignConfig.class,fallbackFactory = UserApiServiceFactory.class*/)
public interface BillApiService {

    @GetMapping("api/bill/test")
    BooleanResponse test(@RequestParam("userName") String userName);


    @PostMapping("api/bill")
    boolean save(@RequestParam("userName") String userName);

}
